package com.sqsf.javabean;

import java.util.Date;

public class User {
    private int uid;
    private String username;
    private String password;
    private String phone;
    //在使用mybatis进行一对一多表查询赋值时
    //使用属性的形式进行标识
    private Role r;

    public User() {
    }

    public Role getR() {
        return r;
    }

    public void setR(Role r) {
        this.r = r;
    }

    public int getUid() {
        return uid;
    }
    @Override
    public String toString() {
        return "User{" +
              "uid=" + uid +
            ", username='" + username + '\'' +
            ", password='" + password + '\'' +
            ", phone='" + phone + '\'' +
            ", r=" + r +
            '}';
    }
}